{{left_sidebar_enabled,right_sidebar_enabled=False,False}}
{{extend 'layout.html'}}


{{=H3('Funções', _style='text-align:left')}}
{{r_list = []}}
{{for f in funcoes_tbody:}}
	{{r = TR(*[TD(f[i], _style='text-align:center') for i in xrange(len(f)-1)])}}
	{{r.append(A('editar', _href=URL('update_funcao', args=f[len(f)-1])))}}
	{{r.append(A('apagar', _href=URL('delete_funcao', args=f[len(f)-1])))}}
	{{r_list.append(r)}}
{{pass}}
{{=TABLE(
	THEAD(TR(*[TH(*i, _style='text-align:center') for i in funcoes_thead])),
	TBODY(*r_list),
	TFOOT(TR(TD(B('Total'), _colspan=4, _style='text-align:center;font-weight:bold'),
		TD(esperado_sum, _style='text-align:center'), TD('', _colspan=2), TD(custo_sum, _style='text-align:center'), TD(pessoas_sum, _style='text-align:center')), _style='border-top:2px solid'))}}

{{=A('Adicionar Função', _href=URL('new'), _class='button')}}
